/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fri.businessLayer;


import fri.entiry.FrPaymentcode;

import javax.ejb.Remote;
import java.util.List;
/**
 *
 * @author NguyenDongUIT
 */
@Remote
public interface PaymentCodeBeanRemote {


    String generateCode(String fromUserId, String toUserId, int currencyId, float value, String desc, int status);

    List<FrPaymentcode> getPaymentCodeByUserId(String userId);

    FrPaymentcode getPaymentcode(String codeId);

    int setStatusOfPayment(String codeId, int state);

    int applyPaymentCode(String toUserId, String paymentCode);

    List<FrPaymentcode> getAllPaymentCode();

    FrPaymentcode getPaymentCodeFromPaymentCode(String paymentCode);

    
    
}
